
const system = {
  path: "/",
  redirect: "domain-manage/home",
  //conponent: XXX  这个不需要, 平台加载首页框架
  children: [
    {
      path: "domain-manage/home",
      name: "domain-manage_home_index",
      component: resolve => require(["../views/home/home.vue"], resolve)
    },
    {
      path: "domain-manage/export-import",
      icon: "compose",
      name: "export-import",
      title: "基础数据管理",
      component: resolve => {
        require(["../views/exportImport/exportImport.vue"], resolve);
      }
    },
    {
      path: "domain-manage/receipt-sequence-manage",
      icon: "compose",
      name: "receipt-sequence-manage",
      title: "单据序列管理",
      component: resolve => {
        require(["../views/receiptSequence/ReceiptSequenceManage.vue"], resolve);
      }
    },
    {
      path: "domain-manage/value-set",
      icon: "compose",
      name: "value-set",
      title: "值集管理",
      component: resolve => {
        require(["../views/valueSet/ValueSetList.vue"], resolve);
      }
    },
    {
      path: "domain-manage/user-list",
      icon: "compose",
      name: "user-list",
      title: "用户管理",
      component: resolve => {
        require(["../views/userCenter/userManage/UserList.vue"], resolve);
      }
    },
    {
      path: "domain-manage/tenant-list",
      icon: "compose",
      name: "tenant-list",
      title: "租户管理",
      component: resolve => require(["../views/tenantManage/TenantList.vue"], resolve)
    },
    {
      path: "domain-manage/tenant-data-statistics",
      icon: "compose",
      name: "tenant-data-statistics",
      title: "租户数据统计",
      // meta: { noLimit: true },
      component: resolve => require(["../views/tenantManage/TenantDataStatistics.vue"], resolve)
    },
    {
      path: "domain-manage/config-manage",
      icon: "compose",
      name: "config-manage",
      titel: "系统配置",
      component: resolve => require(["../views/configManage/ConfigManage.vue"], resolve)
    },
    {
      path: "domain-manage/dimension-manage",
      icon: "compose",
      name: "dimension-manage",
      titel: "维度管理",
      component: resolve => require(["../views/dimension/DimensionList.vue"], resolve)
    },
    {
      path: "domain-manage/application-list",
      icon: "compose",
      name: "application-list",
      title: "应用管理",
      component: resolve => require(["../views/applicationList/ApplicationList.vue"], resolve)
    },
    {
      path: "domain-manage/role-manage",
      icon: "compose",
      name: "role-manage",
      title: "角色管理",
      component: resolve => require(["../views/role/RoleManage.vue"], resolve)
    },
    {
      path: "domain-manage/org-manage",
      redirect: "org-manage/org-structure",
      icon: "compose",
      name: "org-manage",
      title: "组织管理"
      // component: resolve => require(["../views/orgManage/OrgManage.vue"], resolve)
    },
    {
      path: "domain-manage/org-manage/org-structure",
      icon: "compose",
      name: "org-structure",
      title: "组织架构",
      component: resolve => {
        require(["../views/orgManage/orgStructure/OrgStructure.vue"], resolve);
      }
    },
    {
      path: "domain-manage/org-structureTwo",
      icon: "compose",
      name: "org-structureTwo",
      title: "组织架构2.0",
      component: resolve => {
        require(["../views/orgManageTwo/index.vue"], resolve);
      }
    },
    {
      path: "domain-manage/org-manage/company-info",
      icon: "compose",
      name: "company-info",
      title: "公司信息",
      component: resolve => require(["../views/orgManage/companyInfo/CompanyInfo.vue"], resolve)
    },
    {
      path: "domain-manage/post-manage",
      icon: "compose",
      name: "post-manage",
      title: "岗位管理",
      component: resolve => require(["../views/post/PostManage.vue"], resolve)
    },
    {
      path: "domain-manage/menu-manage",
      icon: "compose",
      name: "menu-manage",
      title: "菜单管理",
      component: resolve => require(["../views/menuManage/MenuManage.vue"], resolve)
    },
    {
      path: "domain-manage/function-manage",
      icon: "compose",
      name: "function-manage",
      title: "功能管理",
      component: resolve => require(["../views/functionManage/FunctionManage.vue"], resolve)
    },
    {
      path: "domain-manage/general-group",
      icon: "compose",
      name: "general-group",
      title: "用户组",
      component: resolve => require(["../views/generalGroup/GeneralGroup.vue"], resolve)
    },
    {
      path: "domain-manage/tree-manage",
      icon: "compose",
      name: "tree-manage",
      title: "树管理",
      component: resolve => require(["../views/system/treeManage/TreeManage.vue"], resolve)
    },
    {
      path: "domain-manage/employee-manage",
      icon: "compose",
      name: "employee-manage",
      title: "员工管理",
      component: resolve => require(["../views/employee/EmployeeManage.vue"], resolve)
    },
    {
      path: "domain-manage/employee-manageTwo",
      icon: "compose",
      name: "employee-manageTwo",
      title: "员工管理2.0",
      component: resolve => require(["../views/employeeTwo/index.vue"], resolve)
    },
    {
      path: "domain-manage/error-center",
      icon: "compose",
      name: "error-center",
      title: "错误中心",
      component: resolve => require(["../views/errorCenter/ErrCenter.vue"], resolve)
    },
    {
      path: "domain-manage/init-config",
      icon: "compose",
      name: "init-config",
      title: "初始化配置",
      component: resolve => require(["../views/initConfig/index.vue"], resolve)
    },
    {
      path: "domain-manage/extend-attr",
      icon: "compose",
      name: "extend-attr",
      title: "拓展属性",
      component: resolve => require(["../views/extendAttr/ExtendAttr.vue"], resolve)
    },
    {
      path: "domain-manage/org-assign-role",
      icon: "compose",
      name: "org-assign-role",
      title: "角色分配",
      component: resolve => require(["../views/orgAssignRole/OrgAssignRole.vue"], resolve)
    },
    {
      path: "domain-manage/org-assign-app",
      icon: "compose",
      name: "org-assign-app",
      title: "应用分配",
      component: resolve => require(["../views/orgAssignAppliction/OrgAssignApp.vue"], resolve)
    },
    {
      path: "domain-manage/job-manage",
      icon: "compose",
      name: "job-manage",
      title: "职务管理",
      component: resolve => require(["../views/jobManage/JobManage.vue"], resolve)
    },
    {
      path: "domain-manage/app-assign-user",
      icon: "compose",
      name: "app-assign-user",
      title: "用户分配",
      component: resolve => require(["../views/appAssignUser/AppList.vue"], resolve)
    },
    {
      path: "domain-manage/data-permission",
      icon: "compose",
      name: "data-permission",
      title: "数据权限",
      component: resolve => require(["../views/dataPermission/PermissionRuleList.vue"], resolve)
    },
    {
      path: "domain-manage/route-manage",
      icon: "compose",
      name: "route-manage",
      title: "API网关",
      component: resolve => require(["../views/routeManage/routeManage.vue"], resolve)
    },
    {
      path: "domain-manage/import-export",
      icon: "compose",
      name: "import-export",
      title: "导入导出",
      component: resolve => require(["../views/ImportExport/ImportExport.vue"], resolve)
    },
    {
      path: "domain-manage/service-manage",
      icon: "compose",
      name: "service-manage",
      title: "服务商管理",
      component: resolve => require(["../views/serviceManage/serviceManage.vue"], resolve)
    },
    {
      path: "domain-manage/server-api",
      icon: "compose",
      name: "server-api",
      title: "服务接口",
      component: resolve => require(["../views/serverApi/serverApiList"], resolve)
    },
    {
      path: "domain-manage/resource-publish",
      icon: "compose",
      name: "resource-publish",
      title: "资源发布管理",
      component: resolve => require(["../views/resourcePublish/resourcePublish"], resolve)
    },
    {
      path: "domain-manage/configure-list",
      icon: "compose",
      name: "configure-list",
      title: "配置列表",
      component: resolve => require(["../views/nacosList/index"], resolve)
    },
    {
      path: "domain-manage/subscriber-code",
      icon: "compose",
      name: "subscriber-code",
      title: "订阅者列表",
      component: resolve => require(["../views/subscriber/index"], resolve)
    },
    {
      path: "domain-manage/service-list",
      icon: "compose",
      name: "service-list",
      title: "服务列表",
      component: resolve => require(["../views/serviceList/index"], resolve)
    },
    {
      path: "domain-manage/history-version",
      icon: "compose",
      name: "history-version",
      title: "历史版本",
      component: resolve => require(["../views/historyVersion/index"], resolve)
    },
    {
      path: "domain-manage/monitor-query",
      icon: "compose",
      name: "monitor-query",
      title: "监听查询",
      component: resolve => require(["../views/monitorQuery/index"], resolve)
    },
    {
      path: "domain-manage/nacos-namespace",
      icon: "compose",
      name: "nacos-namespace",
      title: "命名空间",
      component: resolve => require(["../views/nacosNamespace/index"], resolve)
    },
    {
      path: "domain-manage/api-management",
      icon: "compose",
      name: "api-management",
      title: "api管理",
      component: resolve => require(["../views/apiManagement/index"], resolve)
    },
    {
      path: "domain-manage/api-management/detail",
      icon: "compose",
      name: "api-management-detail",
      title: "api详情",
      meta: { noLimit: true },
      component: resolve => require(["../views/apiManagement/detail"], resolve)
    },
    // 流程平台
    {
      path: 'flow-model-list',
      icon: 'compose',
      name: 'flow-model-list',
      title: '流程列表',
      component: resolve => {
        require(['../views/flowable/modelList/modelList.vue'], resolve)
      }
    },
    {
      path: 'instance-manage',
      icon: 'compose',
      name: 'instance-manage',
      title: '流程实例',
      component: resolve => {
        require(['../views/flowable/instanceManage/instanceManage.vue'], resolve)
      }
    },
    {
      path: 'launch-application',
      icon: 'compose',
      name: 'launch-application',
      title: '发起申请',
      component: resolve => {
        require(['../views/flowable/office/launchApp/launchApp.vue'], resolve)
      }
    },
    {
      path: 'app-history',
      icon: 'compose',
      name: 'app-history',
      title: '申请历史',
      component: resolve => {
        require(['../views/flowable/office/appHistory/appHistory.vue'], resolve)
      }
    },
    {
      path: 'to-do',
      icon: 'compose',
      name: 'to-do',
      title: '待办事项',
      component: resolve => {
        require(['../views/flowable/office/toDo/toDoList.vue'], resolve)
      }
    },
    {
      path: 'to-be-read',
      icon: 'compose',
      name: 'to-be-read',
      title: '已收传阅',
      component: resolve => {
        require(['../views/flowable/office/toBeRead/toBeReadList.vue'], resolve)
      }
    },
    {
      path: 'read-history',
      icon: 'compose',
      name: 'read-history',
      title: '已发传阅',
      component: resolve => {
        require(['../views/flowable/office/readPassHistory/historyList.vue'], resolve)
      }
    },
    {
      path: 'done-list',
      icon: 'compose',
      name: 'done-list',
      title: '已办事项',
      component: resolve => {
        require(['../views/flowable/office/doneList/doneList.vue'], resolve)
      }
    },
    {
      path: 'form-list',
      icon: 'compose',
      name: 'form-list',
      title: '表单',
      component: resolve => {
        require(['@/components/CommonContainer.vue'], resolve)
      }
    },
    {
      path: 'decision-list',
      icon: 'compose',
      name: 'decision-list',
      title: '决策表',
      component: resolve => {
        require(['@/components/CommonContainer.vue'], resolve)
      }
    },
    {
      path: 'tenant-register',
      icon: 'compose',
      name: 'tenant-register',
      title: '租户注册',
      component: resolve => {
        require(['../views/flowable/tenantManages/tenantKey/tenantKey.vue'], resolve)
      }
    },
    {
      path: 'callback_business',
      icon: 'compose',
      name: 'callback_business',
      title: '业务回调',
      component: resolve => {
        require(['../views/flowable/tenantManages/callback/callbackBusiness.vue'], resolve)
      }
    },
    {
      path: 'message-model',
      icon: 'compose',
      name: 'message-model',
      title: '消息模板',
      component: resolve => {
        require(['../views/flowable/tenantManages/messageModel/messageModel.vue'], resolve)
      }
    },
    {
      path: 'resource-manage',
      icon: 'compose',
      name: 'resource-manage',
      title: '资源管理',
      component: resolve => {
        require(['../views/flowable/tenantManages/resourceManage/resourceManage.vue'], resolve)
      }
    },
    {
      path: 'middle-page/:target',
      icon: 'compose',
      name: 'middle-page',
      title: '跳转中间页',
      component: resolve => {
        require(['../views/flowable/middlePage.vue'], resolve)
      }
    },
    {
      path: 'user-manage',
      icon: 'compose',
      name: 'user-manage',
      title: '用户管理',
      component: resolve => {
        require(['../views/flowable/systemManage/userManage/userManage.vue'], resolve)
      }
    },
    {
      path: 'user-group-manage',
      icon: 'compose',
      name: 'user-group-manage',
      title: '用户管理',
      component: resolve => {
        require(['../views/flowable/systemManage/userGroupManage/userGroupManage.vue'], resolve)
      }
    },
    {
      path: 'role-manage-flowable',
      icon: 'compose',
      name: 'role-manage-flowable',
      title: '用户管理',
      component: resolve => {
        require(['../views/flowable/systemManage/roleManage/roleManage.vue'], resolve)
      }
    },
    {
      path: 'wallboard',
      icon: 'compose',
      name: 'wallboard',
      title: '应用墙',
      meta: { noLimit: true },
      props: (route) => ({
        appId: 'wallboard'
      }),
      component: () => import('../views/spring-boot-admin/index.vue')
    },
    {
      path: 'applications',
      icon: 'compose',
      name: 'applications',
      title: '应用',
      meta: { noLimit: true },
      props: (route) => ({
        appId: 'applications'
      }),
      component: () => import('../views/spring-boot-admin/index.vue')
    },
    {
      path: 'journal',
      icon: 'compose',
      name: 'journal',
      title: '日志报表',
      meta: { noLimit: true },
      props: (route) => ({
        appId: 'journal'
      }),
      component: () => import('../views/spring-boot-admin/index.vue')
    }
  ],
  
}; 
module.exports.system = system;

module.exports.addUserInfo = {
  path: "/add-user-info",
  icon: "compose",
  name: "add-user-info",
  title: "完善用户资料",
  component: resolve => {
    require(["../views/userCenter/userManage/AddUserInfo.vue"], resolve);
  }
};
module.exports.forgotPassword = {
  path: "/forgot-password",
  redirect: "/forgot-password/enter-account",
  name: "forgot-password",
  meta: "forgetPassword",
  title: "忘记密码",
  component: resolve => {
    require(["../views/userCenter/forgotPassword/ForgotPassword.vue"], resolve);
  },
  children: [
    {
      path: "enter-account",
      icon: "compose",
      name: "enter-account",
      meta: "forgetPassword",
      title: "输入账号",
      component: resolve => {
        require(["../views/userCenter/forgotPassword/EnterAccount.vue"], resolve);
      }
    },
    {
      path: "retrieve-password",
      icon: "compose",
      name: "retrieve-password",
      meta: "forgetPassword",
      title: "找回密码",
      component: resolve => {
        require(["../views/userCenter/forgotPassword/RetrievePassword.vue"], resolve);
      }
    },
    {
      path: "validate-phone",
      icon: "compose",
      name: "validate-phone",
      meta: "forgetPassword",
      title: "验证手机",
      component: resolve => {
        require(["../views/userCenter/forgotPassword/ValidatePhone.vue"], resolve);
      }
    },
    {
      path: "validate-email",
      icon: "compose",
      name: "validate-email",
      meta: "forgetPassword",
      title: "验证邮箱",
      component: resolve => {
        require(["../views/userCenter/forgotPassword/ValidateEmail.vue"], resolve);
      }
    },
    {
      path: "change-password",
      icon: "compose",
      name: "change-password",
      meta: "forgetPassword",
      title: "修改密码",
      component: resolve => {
        require(["../views/userCenter/forgotPassword/ChangePassword.vue"], resolve);
      }
    }
  ]
};

module.exports.portal = {
  path: "/home",
  icon: "compose",
  meta: "portal-page",
  name: "home_index",
  title: "完善用户资料",
  component: resolve => {
    require(["../views/home.vue"], resolve);
  }
};

